call-with-current-continuation - определение. Что такое call-with-current-continuation
Diclib.com
Словарь ChatGPT
Введите слово или словосочетание на любом языке 👆
Язык:

Перевод и анализ слов искусственным интеллектом ChatGPT

На этой странице Вы можете получить подробный анализ слова или словосочетания, произведенный с помощью лучшей на сегодняшний день технологии искусственного интеллекта:

  • как употребляется слово
  • частота употребления
  • используется оно чаще в устной или письменной речи
  • варианты перевода слова
  • примеры употребления (несколько фраз с переводом)
  • этимология

Что (кто) такое call-with-current-continuation - определение

CONTROL FLOW OPERATOR IN FUNCTIONAL PROGRAMMING
Call with current continuation; Callcc; Call/cc; Continuation object
Найдено результатов: 8429
call-with-current-continuation         
<Lisp, programming> (call/cc) A Lisp control function that takes a function f as its argument and calls f, passing it the current continuation, which is itself a function, k. k, which represents the context of the call to call/cc, takes the result of call/cc (which is the result of f) and returns the final result of the whole program. Thus if, for example, the final result is to print the value returned by call/cc then anything passed to k will also be printed. E.g, in Scheme: (define (f k) (k 1) (k 2) 3) (display (call-with-current-continuation f)) Will display 1. (2001-04-27)
Call-with-current-continuation         
In the Scheme computer programming language, the procedure call-with-current-continuation, abbreviated call/cc, is used as a control flow operator. It has been adopted by several other programming languages.
call/cc         
Delimited continuation         
A CONTINUATION THAT RETURNS A VALUE AND THUS MAY BE REUSED AND COMPOSED
Partial continuation; Composable continuation; Shift/reset; Shift-reset; Delimited continuations; Shift and reset
In programming languages, a delimited continuation, composable continuation or partial continuation, is a "slice" of a continuation frame that has been reified into a function. Unlike regular continuations, delimited continuations return a value, and thus may be reused and composed.
call sign         
  • Department of Commerce callbook, 1919
  • WWV]], indicating its early location in the U.S. state of [[Maryland]]
UNIQUE DESIGNATION FOR A TRANSMITTING STATION
Television call sign; Call letters; Radio call sign; Call signs; Callsign (radio); Call Letters; Amateur call letters; Call letter; Australian callsigns; W (call sign); Ham prefix; Broadcast call sign; Call Sign; Callsigns; Call-sign; International call sign; International call signs; Call signal; International callsign; Call name (call letters); Callsign
Sequence of letters and numbers, unique to each ship, that identify the ship.
Current (fluid)         
MAGNITUDE AND DIRECTION OF FLOW IN A FLUID
Current (water); Water current
A current in a fluid is the magnitude and direction of flow within that fluid, such as a liquid or a gas.
call sign         
  • Department of Commerce callbook, 1919
  • WWV]], indicating its early location in the U.S. state of [[Maryland]]
UNIQUE DESIGNATION FOR A TRANSMITTING STATION
Television call sign; Call letters; Radio call sign; Call signs; Callsign (radio); Call Letters; Amateur call letters; Call letter; Australian callsigns; W (call sign); Ham prefix; Broadcast call sign; Call Sign; Callsigns; Call-sign; International call sign; International call signs; Call signal; International callsign; Call name (call letters); Callsign
(also call signal)
¦ noun a message, code, or tune that is broadcast by radio to identify the broadcaster or transmitter.
Call option         
  • Profits from buying a call.
  • Profits from writing a call.
FINANCIAL INSTRUMENT
Clean up call; Call options; Call provisions; European Call Option; Long call; Short call
A call option, often simply labeled a "call", is a contract, between the buyer and the seller of the call option, to exchange a security at a set price. The buyer of the call option has the right, but not the obligation, to buy an agreed quantity of a particular commodity or financial instrument (the underlying) from the seller of the option at a certain time (the expiration date) for a certain price (the strike price).
call letters         
  • Department of Commerce callbook, 1919
  • WWV]], indicating its early location in the U.S. state of [[Maryland]]
UNIQUE DESIGNATION FOR A TRANSMITTING STATION
Television call sign; Call letters; Radio call sign; Call signs; Callsign (radio); Call Letters; Amateur call letters; Call letter; Australian callsigns; W (call sign); Ham prefix; Broadcast call sign; Call Sign; Callsigns; Call-sign; International call sign; International call signs; Call signal; International callsign; Call name (call letters); Callsign
¦ plural noun N. Amer. a sequence of letters used by a television or radio station as an identifying code.
call sign         
  • Department of Commerce callbook, 1919
  • WWV]], indicating its early location in the U.S. state of [[Maryland]]
UNIQUE DESIGNATION FOR A TRANSMITTING STATION
Television call sign; Call letters; Radio call sign; Call signs; Callsign (radio); Call Letters; Amateur call letters; Call letter; Australian callsigns; W (call sign); Ham prefix; Broadcast call sign; Call Sign; Callsigns; Call-sign; International call sign; International call signs; Call signal; International callsign; Call name (call letters); Callsign
(call signs)
A call sign is the letters and numbers which identify a person, vehicle, or organization that is broadcasting on the radio or sending messages by radio.
N-COUNT

Википедия

Call-with-current-continuation

In the Scheme computer programming language, the procedure call-with-current-continuation, abbreviated call/cc, is used as a control flow operator. It has been adopted by several other programming languages.

Taking a function f as its only argument, (call/cc f) within an expression is applied to the current continuation of the expression. For example ((call/cc f) e2) is equivalent to applying f to the current continuation of the expression. The current continuation is given by replacing (call/cc f) by a variable c bound by a lambda abstraction, so the current continuation is (lambda (c) (c e2)). Applying the function f to it gives the final result (f (lambda (c) (c e2))).

As a complementary example, in an expression (e1 (call/cc f)), the continuation for the sub-expression (call/cc f) is (lambda (c) (e1 c)), so the whole expression is equivalent to (f (lambda (c) (e1 c))). In other words it takes a "snapshot" of the current control context or control state of the program as an object and applies f to it. The continuation object is a first-class value and is represented as a function, with function application as its only operation. When a continuation object is applied to an argument, the existing continuation is eliminated and the applied continuation is restored in its place, so that the program flow will continue at the point at which the continuation was captured and the argument of the continuation then becomes the "return value" of the call/cc invocation. Continuations created with call/cc may be called more than once, and even from outside the dynamic extent of the call/cc application.

In computer science, making this type of implicit program state visible as an object is termed reification. (Scheme does not syntactically distinguish between applying continuations or functions.)

With call/cc a variety of complex control operators can be implemented from other languages via a few lines of code, e.g., McCarthy's amb operator for nondeterministic choice, Prolog-style backtracking, Simula 67-style coroutines and generalizations thereof, Icon-style generators, or engines and threads or even the obscure COMEFROM.